<extend name="Public/base"/>

<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>
            {$meta_title}
        </h2>
    </div>
    <form action="" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">菜单名称<span class="check-tips"></span></label>

            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$addons_menu_info.name|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">上级菜单<span class="check-tips"></span></label>

            <div class="controls">
                <select name="pid">
                    <option value="0">顶级菜单</option>
                    <volist name="addons_menu_list" id="vo">
                        <option value="{$vo.id}"
                        <eq name="vo.id" value="$addons_menu_info['pid']">selected</eq>
                        >{$vo.name}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">菜单类型<span class="check-tips"></span></label>

            <div class="controls">
                <select name="menu_type">
                    <option value="view"
                    <eq name="addons_menu_info.menu_type" value="view">selected</eq>
                    >链接</option>
                    <option value="click"
                    <eq name="addons_menu_info.menu_type" value="click">selected</eq>
                    >关键词</option>
                </select>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">URL或者Key<span class="check-tips"></span></label>

            <div class="controls">
                <input type="text" class="text input-large" value="{$addons_menu_info.key}" name="key"/>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">排序<span class="check-tips"></span></label>

            <div class="controls">
                <input type="text" class="text input-large" name="sort" value="{$addons_menu_info.sort|default='0'}">
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{$addons_menu_info.id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定
            </button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>
<block name="script">
    <script type="text/javascript" charset="utf-8">
        //导航高亮
        highlight_subnav("{:U('adminList',array('name'=>'Weixin'))}");
    </script>
</block>
